package Middleware;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

public interface IRoom extends Remote{
	boolean enter(String username, String password) throws RemoteException;
	void leave(String username, String password) throws RemoteException;
	ArrayList<IPlayer> getPlayers() throws RemoteException;
	ArrayList<IPlayer> getPlayers(String username, String password) throws RemoteException;
	boolean hasRoom() throws RemoteException;
	boolean bet(String username, String password,int amount) throws RemoteException;
	void hitMe(String username, String password) throws RemoteException;
	void enough(String username, String password) throws RemoteException;
	void betDouble(String username, String password) throws RemoteException;
	IPlayer split(String username, String password) throws RemoteException;
	boolean IsRoundInProgress() throws RemoteException;
	
	int getTimestamp() throws RemoteException;
	String getRMIName() throws RemoteException;
	String getDetails() throws RemoteException;
}
